Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Base Names testnet compatibility #966

Merged
merged 5 commits into from
Aug 5, 2024
Merged

Conversation

cpcramer
Copy link
Contributor

@cpcramer cpcramer commented Jul 31, 2024

What changed? Why?
Base Names was only working on Mainnet. This updates the component to work with EOAs and Smart Wallets on Mainnet and Testnet.

Notes to reviewers

How has it been tested?

@github-actions github-actions bot added documentation Improvements or additions to documentation pkg: wallet labels Jul 31, 2024
Copy link

vercel bot commented Jul 31, 2024

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this project.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@cpcramer cpcramer changed the title Chore: Base Names testnet compatibility chore: Base Names testnet compatibility Jul 31, 2024
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from 41a85fb to 90cac3d Compare August 2, 2024 05:37
Copy link

vercel bot commented Aug 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
onchainkit-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 2, 2024 9:16pm

@@ -61,6 +61,7 @@ export type UseGetTokenBalanceResponse = {
*/
export type WalletContextType = {
address?: Address | null; // The Ethereum address to fetch the avatar and name for.
chain?: Chain; // Optional chain for domain resolution
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, I think we probably want to start move away from using chain as type. Mostly because we are seeing occasional missmatch with Viem types.

Let's do instead chainId for those things going forward.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts on merging this and then updating to chainId in the next PR? Because the chainId change will require getName, Name, and useName updates.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll push up the chainId changes and we can split it into two PRs if it's too large

@cpcramer cpcramer force-pushed the paul/fix-basenames branch from ab9ed21 to e36b444 Compare August 2, 2024 20:20
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from e36b444 to c3d4dab Compare August 2, 2024 20:27
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from c3d4dab to 81720f1 Compare August 2, 2024 20:54
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from 81720f1 to 7d0c862 Compare August 2, 2024 20:57
@cpcramer cpcramer changed the title chore: Base Names testnet compatibility chore: Base Names testnet compatibility + Chain to chainId refactor Aug 2, 2024
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from 7d0c862 to 658d0db Compare August 2, 2024 21:07
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from 658d0db to b837f57 Compare August 2, 2024 21:11
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from b837f57 to 821fd8c Compare August 2, 2024 21:15
@cpcramer cpcramer force-pushed the paul/fix-basenames branch from 821fd8c to 9a16b9a Compare August 3, 2024 20:12
@cpcramer cpcramer changed the title chore: Base Names testnet compatibility + Chain to chainId refactor chore: Base Names testnet compatibility Aug 3, 2024
Copy link
Contributor

@Zizzamia Zizzamia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this.
Make sure to follow up tomorrow with a updated version of WalletContextType type.

We should never ship that changes a type without the docs updated as well.

@Zizzamia Zizzamia merged commit 922b308 into main Aug 5, 2024
23 checks passed
@Zizzamia Zizzamia deleted the paul/fix-basenames branch August 5, 2024 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation pkg: identity pkg: network pkg: wallet
Development

Successfully merging this pull request may close these issues.

2 participants